# 作者: 宇
# 2025年02月25日09时48分17秒

import re

result=re.match("wangdao","wangdao.cn")
if result:
    print(result.group())

ret = re.match(".","M")
print(ret.group())
ret = re.match("t.o","too")
print(ret.group())
ret = re.match("t.o","two")
print(ret.group())
print("-"*70)
ret = re.match("[Ee]","eello Python")
print(ret.group())
ret = re.match("[hH]","Hello Python")
print(ret.group())
ret = re.match("[hH]ello Python","Hello Python")
print(ret.group())
print("-"*70)
ret = re.match("[0-7]Hello Python","7Hello Python")
print(ret.group())
ret = re.match("[0-35-9]Hello Python","7Hello Python")
print(ret.group())
print("-"*70)
ret = re.match(r"嫦娥\d号","嫦娥1号发射成功")
print(ret.group())
ret = re.match(r"嫦娥\d号","嫦娥2号发射成功")
print(ret.group())
ret = re.match(r"嫦娥\d号","嫦娥3号发射成功")
print(ret.group())
